dojo.declare("DAdminPg", wm.Page, {
start: function() {
},
"preferredDevice": "desktop",
_end: 0
});

DAdminPg.widgets = {
servicesLiveVariable1: ["wm.LiveVariable", {"orderBy":"asc:serviceName","type":"com.servicelivedb.data.Services"}, {}, {
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Services","view":[
{"caption":"ServiceId","sortable":true,"dataIndex":"serviceId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"ServiceName","sortable":true,"dataIndex":"serviceName","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null}
]}, {}]
}],
userServiceVariable: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"registerVendor","service":"RegistrationService"}, {}, {
input: ["wm.ServiceInput", {"type":"registerVendorInputs"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"pageContainer1.dAdminRegisterPg.checkboxVendor.dataValue","targetProperty":"isVendor"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"pageContainer1.dAdminRegisterPg.textActivationCode.dataValue","targetProperty":"activationCode"}, {}],
wire2: ["wm.Wire", {"expression":undefined,"source":"pageContainer1.dAdminRegisterPg.emailEditor1.dataValue","targetProperty":"customer.email"}, {}],
wire3: ["wm.Wire", {"expression":undefined,"source":"pageContainer1.dAdminRegisterPg.passwordEditor1.dataValue","targetProperty":"customer.password"}, {}],
wire4: ["wm.Wire", {"expression":undefined,"source":"pageContainer1.dAdminRegisterPg.nameEditor1.dataValue","targetProperty":"customer.name"}, {}],
wire5: ["wm.Wire", {"expression":undefined,"source":"pageContainer1.dAdminRegisterPg.blockEditor1.dataValue","targetProperty":"customer.block"}, {}],
wire6: ["wm.Wire", {"expression":undefined,"source":"pageContainer1.dAdminRegisterPg.doorEditor1.dataValue","targetProperty":"customer.door"}, {}],
wire7: ["wm.Wire", {"expression":undefined,"source":"pageContainer1.dAdminRegisterPg.primaryPhoneEditor1.dataValue","targetProperty":"customer.primaryPhone"}, {}],
wire8: ["wm.Wire", {"expression":undefined,"source":"pageContainer1.dAdminRegisterPg.secondaryPhoneEditor1.dataValue","targetProperty":"customer.secondaryPhone"}, {}]
}]
}]
}],
vendorVariable: ["wm.LiveVariable", {"autoUpdate":false,"inFlightBehavior":"executeLast","orderBy":"asc:name","startUpdate":false,"type":"com.servicelivedb.data.Customer"}, {}, {
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Customer","view":[
{"caption":"CustomerId","sortable":true,"dataIndex":"customerId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"Address","sortable":true,"dataIndex":"address","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"Email","sortable":true,"dataIndex":"email","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},
{"caption":"UpdatedDt","sortable":true,"dataIndex":"updatedDt","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null},
{"caption":"UpdatedBy","sortable":true,"dataIndex":"updatedBy","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":4,"subType":null},
{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":5,"subType":null},
{"caption":"Password","sortable":true,"dataIndex":"password","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":6,"subType":null},
{"caption":"Username","sortable":true,"dataIndex":"username","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7,"subType":null},
{"caption":"Name","sortable":true,"dataIndex":"name","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":8,"subType":null},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"primaryPhone","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":9,"subType":null},
{"caption":"SecondaryPhone","sortable":true,"dataIndex":"secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":10,"subType":null},
{"caption":"Type","sortable":true,"dataIndex":"type","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":11,"subType":null},
{"caption":"AlternateContact","sortable":true,"dataIndex":"alternateContact","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":12,"subType":null},
{"caption":"Pto","sortable":true,"dataIndex":"pto","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":13,"subType":null},
{"caption":"PtoMessage","sortable":true,"dataIndex":"ptoMessage","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14,"subType":null},
{"caption":"Vendor_msg","sortable":true,"dataIndex":"vendor_msg","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":15,"subType":null},
{"caption":"Min_order_amount","sortable":true,"dataIndex":"min_order_amount","type":"java.lang.Integer","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":16,"subType":null},
{"caption":"Shop_time","sortable":true,"dataIndex":"shop_time","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":17,"subType":null}
]}, {}],
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"\"VENDOR\"","targetProperty":"filter.type"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"projectLookup1.selectedItem","targetProperty":"filter.project"}, {}]
}]
}],
lvProjects: ["wm.LiveVariable", {"autoUpdate":false,"inFlightBehavior":"executeLast","orderBy":"asc:projectName","startUpdate":false,"type":"com.servicelivedb.data.Project"}, {}, {
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Project","view":[
{"caption":"ProjectId","sortable":true,"dataIndex":"projectId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"ProjectName","sortable":true,"dataIndex":"projectName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"Address","sortable":true,"dataIndex":"address","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},
{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"primaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":4,"subType":null},
{"caption":"SecondaryPhone","sortable":true,"dataIndex":"secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":5,"subType":null},
{"caption":"Email","sortable":true,"dataIndex":"email","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":6,"subType":null},
{"caption":"Website","sortable":true,"dataIndex":"website","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7,"subType":null},
{"caption":"Description","sortable":true,"dataIndex":"description","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":8,"subType":null},
{"caption":"Image","sortable":true,"dataIndex":"image","type":"byte","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":9,"subType":null}
]}, {}]
}],
lvServices: ["wm.LiveVariable", {"autoUpdate":false,"inFlightBehavior":"executeLast","orderBy":"asc:serviceName","startUpdate":false,"type":"com.servicelivedb.data.Services"}, {}, {
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Services","view":[
{"caption":"ServiceId","sortable":true,"dataIndex":"serviceId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"ServiceName","sortable":true,"dataIndex":"serviceName","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null}
]}, {}]
}],
layoutBox1: ["wm.Layout", {"horizontalAlign":"left","styles":{"backgroundImage":"resources/images/mobile/background_m.jpg"},"verticalAlign":"top"}, {}, {
tabsAdmin: ["wm.TabLayers", {"clientBorderColor":"#c9abab","defaultLayer":0,"headerHeight":"25px","transition":"fade"}, {}, {
layerOrders: ["wm.Layer", {"borderColor":"#c9abab","caption":"Orders","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
pageContainer10: ["wm.PageContainer", {"deferLoad":true,"pageName":"DAdminOrderPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}],
layer1: ["wm.Layer", {"border":"1","borderColor":"#c9abab","caption":"Project","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
panelProject: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
pageContainer5: ["wm.PageContainer", {"deferLoad":true,"height":"454px","pageName":"DProjectPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}]
}],
layerRegister: ["wm.Layer", {"border":"1","borderColor":"#c9abab","caption":"Registration","horizontalAlign":"left","styles":{},"themeStyleType":"ContentPanel","verticalAlign":"top"}, {"onShow":"pageContainer1.dAdminRegisterPg.lvProjects"}, {
panelProject1: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
pageContainer1: ["wm.PageContainer", {"deferLoad":true,"pageName":"DAdminRegisterPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}]
}],
layerService: ["wm.Layer", {"border":"1","borderColor":"#c9abab","caption":"Services","horizontalAlign":"left","styles":{},"themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
panel1: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
servicesLivePanel1: ["wm.LivePanel", {"horizontalAlign":"left","verticalAlign":"top"}, {}, {
servicesGridPanel: ["wm.FancyPanel", {"minDesktopHeight":220,"minHeight":220,"title":"Services"}, {}, {
servicesDojoGrid: ["wm.DojoGrid", {"_classes":{"domNode":["omgDataGrid"]},"columns":[
{"show":false,"field":"serviceId","title":"ServiceId","width":"80px","align":"right","formatFunc":"","mobileColumn":false},
{"show":true,"field":"serviceName","title":"ServiceName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"\"<div class='MobileRowTitle'>\" +\n\"ServiceName: \" + ${serviceName} +\n\"</div>\"\n\n","mobileColumn":true}
],"dsType":"com.servicelivedb.data.Services","height":"100%","localizationStructure":{},"minDesktopHeight":60}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"servicesLiveVariable1","targetProperty":"dataSet"}, {}]
}]
}]
}],
servicesDetailsPanel: ["wm.FancyPanel", {"fitToContentHeight":true,"height":"107px","title":"Details"}, {}, {
servicesLiveForm1: ["wm.LiveForm", {"editorWidth":"90%","fitToContentHeight":true,"height":"60px","horizontalAlign":"center","readonly":true,"verticalAlign":"top"}, {"onSuccess":"servicesLiveVariable1"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"servicesDojoGrid.selectedItem","targetProperty":"dataSet"}, {}]
}],
serviceIdEditor1: ["wm.Number", {"border":"0","caption":"ServiceId","captionSize":"140px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"zero","formField":"serviceId","height":"26px","readonly":true,"required":true,"showing":false,"width":"90%"}, {}],
serviceNameEditor1: ["wm.Text", {"border":"0","caption":"ServiceName","captionSize":"140px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"serviceName","height":"26px","readonly":true,"required":true,"width":"90%"}, {}],
servicesLiveForm1EditPanel: ["wm.EditPanel", {"desktopHeight":"32px","height":"32px","isCustomized":true,"liveForm":"servicesLiveForm1","lock":false,"operationPanel":"operationPanel2","savePanel":"savePanel2"}, {}, {
savePanel2: ["wm.Panel", {"height":"100%","horizontalAlign":"right","layoutKind":"left-to-right","showing":false,"verticalAlign":"top","width":"100%"}, {}, {
saveButton2: ["wm.Button", {"border":"1","caption":"Save","height":"100%"}, {"onclick":"servicesLiveForm1EditPanel.saveData"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"servicesLiveForm1EditPanel.formInvalid","targetProperty":"disabled"}, {}]
}]
}],
cancelButton2: ["wm.Button", {"border":"1","caption":"Cancel","height":"100%"}, {"onclick":"servicesLiveForm1EditPanel.cancelEdit"}]
}],
operationPanel2: ["wm.Panel", {"height":"100%","horizontalAlign":"right","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
newButton2: ["wm.Button", {"border":"1","caption":"New","height":"100%"}, {"onclick":"servicesLiveForm1EditPanel.beginDataInsert"}],
updateButton2: ["wm.Button", {"border":"1","caption":"Update","height":"100%"}, {"onclick":"servicesLiveForm1EditPanel.beginDataUpdate"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"servicesLiveForm1EditPanel.formUneditable","targetProperty":"disabled"}, {}]
}]
}],
deleteButton2: ["wm.Button", {"border":"1","caption":"Delete","height":"100%","showing":false}, {"onclick":"servicesLiveForm1EditPanel.deleteData"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"servicesLiveForm1EditPanel.formUneditable","targetProperty":"disabled"}, {}]
}]
}]
}]
}]
}]
}]
}]
}]
}],
layerCiustomer: ["wm.Layer", {"border":"1","borderColor":"#c9abab","caption":"Customers","horizontalAlign":"left","styles":{},"themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
pageContainer3: ["wm.PageContainer", {"deferLoad":true,"pageName":"DCustomerPg","styles":{},"subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}],
layerVendors: ["wm.Layer", {"border":"1","borderColor":"#c9abab","caption":"Vendors","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
pageContainer4: ["wm.PageContainer", {"deferLoad":true,"pageName":"DVendorDetailsPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}],
layer7: ["wm.Layer", {"border":"1","borderColor":"#c9abab","caption":"ProjectServices","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {"onShow":"lvProjects","onShow1":"vendorVariable","onShow2":"lvServices"}, {
projectservicevendorLivePanel1: ["wm.LivePanel", {"horizontalAlign":"left","verticalAlign":"top"}, {}, {
pageContainer12: ["wm.PageContainer", {"deferLoad":true,"pageName":"DAdminPVSPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}]
}],
layerItem: ["wm.Layer", {"border":"1","borderColor":"#c9abab","caption":"Items","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {"onShow":"pageContainer2.dProductCatalogPg.lvVendors"}, {
pageContainer2: ["wm.PageContainer", {"deferLoad":true,"pageName":"DProductCatalogPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}],
layerBlock: ["wm.Layer", {"border":"1","borderColor":"#c9abab","caption":"Block/Door","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {"onShow":"pageContainer6.dBlockDoorPg.lvProject"}, {
pageContainer6: ["wm.PageContainer", {"deferLoad":true,"pageName":"DBlockDoorPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}],
layer2: ["wm.Layer", {"border":"1","borderColor":"#c9abab","caption":"Reports","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
panel2: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
pageContainer7: ["wm.PageContainer", {"deferLoad":true,"pageName":"DAdminReportsHomePg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}]
}],
layer3: ["wm.Layer", {"border":"1","borderColor":"#c9abab","caption":"Payments","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
panel3: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
pageContainer8: ["wm.PageContainer", {"deferLoad":true,"pageName":"DAdminPaymentPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}]
}],
layer4: ["wm.Layer", {"border":"1","borderColor":"#c9abab","caption":"Invoice","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
panel4: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
pageContainer9: ["wm.PageContainer", {"deferLoad":true,"pageName":"DAdminInvoicePg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}]
}],
layerSQL: ["wm.Layer", {"borderColor":"#c9abab","caption":"DB","horizontalAlign":"left","themeStyleType":"ContentPanel","verticalAlign":"top"}, {}, {
pageContainer11: ["wm.PageContainer", {"deferLoad":true,"pageName":"DAdminDBScriptPg","subpageEventlist":{},"subpageMethodlist":{},"subpageProplist":{}}, {}]
}]
}]
}]
};

DAdminPg.prototype._cssText = '';
DAdminPg.prototype._htmlText = '';